package com.vito.framework.system.dict.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vito.framework.base.model.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
@ApiModel(value = "sys_dict对象", description = "系统字典表")
public class SysDict extends Entity<SysDict> {

    @TableId(value = "dict_id", type = IdType.AUTO)
    private String dictId;

    @TableField("ptype_code")
    @ApiModelProperty("大类编码")
    private String ptypeCode;

    @TableField("ptype_name")
    @ApiModelProperty("大类名称")
    private String ptypeName;

    @TableField("dict_code")
    @ApiModelProperty("类型编码")
    private String dictCode;

    @TableField("dict_name")
    @ApiModelProperty("类型名称")
    private String dictName;

    @TableField("status")
    @ApiModelProperty("状态1有效0无效")
    private String status;

    @TableField("sort")
    @ApiModelProperty("排序")
    private String sort;
}
